<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name: 'xhg',
            age: 19
        }
        let xhg = Object.create(null, {
            name: {
                value: 'xhg',
                enumerable: true,
                configurable: true,
                writable: true
            },
            age: {
                value: '19'
            }
        })
        console.log(xhg.name, 'xhg.name');
        // age属性，无法遍历，无法改值和删除值
        delete xhg.age
        xhg.age = '20'
        for (const key in xhg) {
            console.log(key, 'key');
        }
        console.log(xhg.age, 'xhg.age');
        
    </script>
</body>
</html>
